]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: Don't arbitrarily pick a random session for the user
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 16 Mar 2015 17:55:02 +0000 (10:55 -0700)
committerRay Strode <rstrode@redhat.com>
Mon, 16 Mar 2015 21:47:27 +0000 (17:47 -0400)
gdm should be in charge of telling us the default session, and it
should pick one for the user if she doesn't already have one.

https://bugzilla.gnome.org/show_bug.cgi?id=740142

js/gdm/loginDialog.js

index ce569bfdb5a4700e109fb5a6c6c8ffb9018fe20e..6b90bb0b594202a1e56019b904a58c136471c343 100644 (file)
@@ -354,9 +354,6 @@ const SessionMenuButton = new Lang.Class({
             this._menu.addMenuItem(item);
             this._items[id] = item;
 
-            if (!this._activeSessionId)
-                this.setActiveSession(id);
-
             item.connect('activate', Lang.bind(this, function() {
                 this.setActiveSession(id);
             }));